package org.chinarjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.chinarjy.entity.Skill;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SkillMapper extends BaseMapper<Skill> {

    @Select(("select * from skill where uid = #{id}"))
    List<Skill> getSkillById(@Param("id") Long id);

    @Delete("delete * from skill")
    void deleteAllSkills();
}

